package com.cool.mybatisplus;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cool.mybatisplus.entity.SystemMenu;

/**
 * @author bian
 * @date 2021-03-20
 */
@Mapper
public interface SysMenuDaoService extends BaseMapper<SystemMenu> {
    int queryTotal();

    @Select("select count(*) from sys_menu")
    int queryTotal2();

    List<SystemMenu> getAllSystemMenu();

    void insertSysMenu(SystemMenu systemMenu);

    List<SystemMenu> selectByName(@Param("list") List<String> list);
}
